package com.geekaca.d09;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Iterator;

public class FileInputStream4 {
    public static void main(String[] args) {
        /**
         * 文件字节流
         * 输入(从外部读取信息到内存    /输出
         */

        try {
            FileInputStream fis = new FileInputStream("./StudyIo1/src/Hello.txt");
//            int readOnebyte= fis.read();
//            System.out.println((char)readOnebyte);
            int bt;
            while ((bt=fis.read())!=-1){
                System.out.print((char)bt );
            }
            System.out.println();



        } catch ( Exception e) {
            e.printStackTrace();
        }

    }
}
